package org.wheel.module.core.request;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class ApiParam {
    private List<ParamField> fields;
    private Map<String, Object> exParam;
    private List<ParamField> where;
    private ParamPaging paging;
    private List<ParamSort> orderBy;

    public static ApiParam instance() {
        ApiParam apiParam = new ApiParam();
        apiParam.setFields(new ArrayList<>());
        apiParam.setWhere(new ArrayList<>());
        apiParam.setPaging(new ParamPaging());
        apiParam.setOrderBy(new ArrayList<>());
        return apiParam;
    }
}
